﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.MYD
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.MYD;

    public class XMCZWT_Map : EntityMapping<XMCZWT>
    {
        public XMCZWT_Map()
        {
            Property(x => x.WT1, map => map.Length(10000));
            Property(x => x.WT2, map => map.Length(10000));
            Property(x => x.WT3, map => map.Length(10000));

            ManyToOne(x => x.Project, map => map.Column(XMCZWT.Columns.proj_id));
            Table(XMCZWT.TableName);
        }
    }
}
